package ch.cern

class MapController {

  static scaffold = true

  def show() {
    def mapInstance = Map.get(params.id)
    if (!mapInstance) {
      flash.message = message(code: 'default.not.found.message', args: [
        message(code: 'map.label', default: 'Map'),
        params.id
      ])
      redirect(action: "list")
      return
    }

    [mapInstance: mapInstance]
  }
}
